gtk4.git
8 years agoswitch: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:31:24 +0000 (10:31 +0200)]
switch: Remove css box drawing

8 years agoflowbox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:29:02 +0000 (10:29 +0200)]
flowbox: Remove css box drawing

8 years agolistbox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:24:55 +0000 (10:24 +0200)]
listbox: Remove css box drawing

8 years agoheaderbar: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:24:43 +0000 (10:24 +0200)]
headerbar: Remove css box drawing

8 years agowidget: Draw focus outline
Timm Bäder [Wed, 3 May 2017 08:24:32 +0000 (10:24 +0200)]
widget: Draw focus outline

8 years agoprogressbar: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:19:29 +0000 (10:19 +0200)]
progressbar: Remove css box drawing

8 years agolabel: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:19:17 +0000 (10:19 +0200)]
label: Remove css box drawing

8 years agogtkgrid: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:18:55 +0000 (10:18 +0200)]
gtkgrid: Remove css box drawing

8 years agogizmo: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:18:41 +0000 (10:18 +0200)]
gizmo: Remove css box drawing

8 years agobox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:18:28 +0000 (10:18 +0200)]
box: Remove css box drawing

8 years agoWidget: Disable css box drawing for GtkWindow
Timm Bäder [Wed, 3 May 2017 08:17:58 +0000 (10:17 +0200)]
Widget: Disable css box drawing for GtkWindow

Until we know how we solve that.

8 years agobutton: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:03:59 +0000 (10:03 +0200)]
button: Remove css box drawing

8 years agowidget: Draw background and border for every widget
Timm Bäder [Wed, 3 May 2017 08:03:24 +0000 (10:03 +0200)]
widget: Draw background and border for every widget

8 years agoBump version
Matthias Clasen [Thu, 20 Jul 2017 01:18:57 +0000 (21:18 -0400)]
Bump version

8 years agoAvoid compiler warnings
Matthias Clasen [Thu, 20 Jul 2017 00:45:52 +0000 (20:45 -0400)]
Avoid compiler warnings

Initialize these variables, so gcc doesn't complain.

8 years ago3.91.1
Matthias Clasen [Wed, 19 Jul 2017 13:16:13 +0000 (09:16 -0400)]
3.91.1

8 years agoa11y tests: Update expected results
Matthias Clasen [Wed, 19 Jul 2017 19:45:51 +0000 (15:45 -0400)]
a11y tests: Update expected results

The license urls in the about dialog changed.

8 years agotestsuite: Adjust gestures tests to gtk4 event delivery
Carlos Garnacho [Wed, 19 Jul 2017 18:57:04 +0000 (20:57 +0200)]
testsuite: Adjust gestures tests to gtk4 event delivery

Events that get to gtk_main_do_event() have the toplevel GdkWindow
as event->any.window. Also, ensure that coordinates fall within
sensible places of the windows, since those might have shadows,
headerbars and whatnot on wayland.

8 years agogtkwindow: Free pointer foci on dispose
Carlos Garnacho [Wed, 19 Jul 2017 16:13:47 +0000 (18:13 +0200)]
gtkwindow: Free pointer foci on dispose

That means the whole hierarchy is getting destroyed, leaving those
behind incurs not only in a leak, but also on weak refs (and unintended
repick) to happen in the wrong moment.

8 years agogtkwindow: Do not leak GtkPointerFocus
Carlos Garnacho [Wed, 19 Jul 2017 16:12:53 +0000 (18:12 +0200)]
gtkwindow: Do not leak GtkPointerFocus

gtk_window_add_pointer_focus() increments the refcount, which means
the caller should be dropping its own.

8 years agoFix compile error in imquartz.c due to API change in GtkIMContext.
John Ralls [Tue, 18 Jul 2017 21:42:26 +0000 (14:42 -0700)]
Fix compile error in imquartz.c due to API change in GtkIMContext.

8 years agoFix MacOS compiler warnings.
John Ralls [Tue, 18 Jul 2017 21:47:25 +0000 (14:47 -0700)]
Fix MacOS compiler warnings.

8 years agoCopy gtk_clipboard_get_default implementation to gtkclipboard-quartz.c
John Ralls [Tue, 18 Jul 2017 18:15:12 +0000 (11:15 -0700)]
Copy gtk_clipboard_get_default implementation to gtkclipboard-quartz.c

Fixes bug 784323.

8 years agoquartz: Implement gtk_clipboard_get_selection
Philip Chimento [Thu, 3 Nov 2016 06:37:29 +0000 (23:37 -0700)]
quartz: Implement gtk_clipboard_get_selection

This function is trivial and can be copied from the X11 implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=772281

8 years agomeson: Add missing source file
Emmanuele Bassi [Tue, 18 Jul 2017 21:50:57 +0000 (22:50 +0100)]
meson: Add missing source file

The newly added gtkfilechoosererrorstack.c source needs to be included
in the Meson build as well as the Autotools one.

8 years agoUpdate POTFILES.in
Piotr Drąg [Tue, 18 Jul 2017 20:03:29 +0000 (22:03 +0200)]
Update POTFILES.in

8 years agofilechooserwidget: Add GtkFileChooserErrorStack
Timm Bäder [Tue, 9 May 2017 07:52:00 +0000 (09:52 +0200)]
filechooserwidget: Add GtkFileChooserErrorStack

Showing all the different errors and warnings when renaming and creating
files/folders without potentially resizing popovers on every keystroke
requires us to know the size of the error messages beforehand, so pack
all of the possible error messages and warnings in labels and those into
a stack. This way we can also neatly crossfade transition between them.

https://bugzilla.gnome.org/show_bug.cgi?id=775636

8 years agofilechooserwidget: Let the rename entry hexpand
Timm Bäder [Sat, 4 Feb 2017 09:49:43 +0000 (10:49 +0100)]
filechooserwidget: Let the rename entry hexpand

This makes a difference with other locals where error messages are
longer than the standard width of entry+spacing+button.

https://bugzilla.gnome.org/show_bug.cgi?id=775636

8 years agoAdd nullable return annotation to gtk_text_mark_get_name
Iñaki García Etxebarria [Sat, 29 Apr 2017 11:08:49 +0000 (13:08 +0200)]
Add nullable return annotation to gtk_text_mark_get_name

https://bugzilla.gnome.org/show_bug.cgi?id=781936

8 years agoAdd nullable return annotation to gtk_notebook_get_tab_label
Iñaki García Etxebarria [Sat, 29 Apr 2017 11:08:26 +0000 (13:08 +0200)]
Add nullable return annotation to gtk_notebook_get_tab_label

https://bugzilla.gnome.org/show_bug.cgi?id=781935

8 years agoUpdate the URLs of known licenses to HTTPS
Daniel Aleksandersen [Fri, 14 Jul 2017 01:19:47 +0000 (03:19 +0200)]
Update the URLs of known licenses to HTTPS

Use HTTPS by default for security/privacy. Avoids slow redirects.

https://bugzilla.gnome.org/show_bug.cgi?id=766517

8 years agogtkapplication: Mark gtk_application_get_active_window() as nullable
Arun Raghavan [Thu, 13 Jul 2017 05:55:11 +0000 (11:25 +0530)]
gtkapplication: Mark gtk_application_get_active_window() as nullable

https://bugzilla.gnome.org/show_bug.cgi?id=784888

8 years agoUpdate POTFILES.in
Piotr Drąg [Tue, 18 Jul 2017 17:43:09 +0000 (19:43 +0200)]
Update POTFILES.in

8 years agoAdd gtkfilechoosernativequart.c to meson build
Matthias Clasen [Tue, 18 Jul 2017 17:35:21 +0000 (13:35 -0400)]
Add gtkfilechoosernativequart.c to meson build

We have two build systems now, for good measure.

8 years agoGtkFileChooserNativeWin32: add support for get_filter and set_filter
Tom Schoonjans [Thu, 13 Jul 2017 19:07:22 +0000 (20:07 +0100)]
GtkFileChooserNativeWin32: add support for get_filter and set_filter

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agotestgtk.c: native file chooser filter changes
Tom Schoonjans [Thu, 13 Jul 2017 19:03:55 +0000 (20:03 +0100)]
testgtk.c: native file chooser filter changes

Set the filter before showing the dialog
Afterwards, fetch the last active filter and display its name.

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNativeQuartz: add support for get_filter and set_filter
Tom Schoonjans [Thu, 13 Jul 2017 19:01:38 +0000 (20:01 +0100)]
GtkFileChooserNativeQuartz: add support for get_filter and set_filter

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNative: documentation updated
Tom Schoonjans [Sun, 9 Jul 2017 17:04:06 +0000 (18:04 +0100)]
GtkFileChooserNative: documentation updated

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNativeQuartz: add support for filters
Tom Schoonjans [Sun, 9 Jul 2017 16:06:12 +0000 (17:06 +0100)]
GtkFileChooserNativeQuartz: add support for filters

Includes:
* Simple glob patterns (*.ext, *.*,...)
* MIME types
* pixbuf formats

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNativeQuartz: add partial support for extra widget
Tom Schoonjans [Tue, 4 Jul 2017 07:07:09 +0000 (08:07 +0100)]
GtkFileChooserNativeQuartz: add partial support for extra widget

When the extra widget is a GtkLabel, then its text will be displayed as
a message in the NSSavePanel or NSOpenPanel

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNativeQuartz: add support for GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
Tom Schoonjans [Mon, 3 Jul 2017 11:54:39 +0000 (12:54 +0100)]
GtkFileChooserNativeQuartz: add support for GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER

Which is via NSOpenPanel, not NSSavePanel...

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFilechooserNative: add macOS support
Tom Schoonjans [Fri, 30 Jun 2017 20:34:05 +0000 (21:34 +0100)]
GtkFilechooserNative: add macOS support

Based on the Win32 implementation, as well as the macOS file chooser
from
https://github.com/GNOME/gedit/blob/master/gedit/gedit-file-chooser-dialog-osx.[ch]
Not fully tested yet, but working properly so far.
TODO: filter support, extra widget (label), documentation...

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoDrop gtk-doc trigraphs on GtkTextView enumeration
Emmanuele Bassi [Sun, 16 Jul 2017 11:33:24 +0000 (12:33 +0100)]
Drop gtk-doc trigraphs on GtkTextView enumeration

The glib-mkenums tool does not recognise these gtk-doc annotations.

8 years agoFixes to Catalan translation
Jordi Mas [Sat, 15 Jul 2017 07:37:29 +0000 (09:37 +0200)]
Fixes to Catalan translation

8 years agoimage: Warn when attempting to load pixdata GResources
Bastien Nocera [Wed, 5 Jul 2017 21:01:26 +0000 (23:01 +0200)]
image: Warn when attempting to load pixdata GResources

GdkPixdata is deprecated. Warn when the application tries to load
pixdata embedded resources. The application developer will have to
remove the "to-pixdata" keyword from the GResource definition file.

https://bugzilla.gnome.org/show_bug.cgi?id=781583

8 years agoUse newer glib-genmarshal to simplify build rules
Emmanuele Bassi [Tue, 11 Jul 2017 10:39:59 +0000 (11:39 +0100)]
Use newer glib-genmarshal to simplify build rules

The glib-genmarshal tool from GLib 2.54 added various command line
arguments that allow us to remove a bunch of as hoc manipulations of
the generated marshaller source files. The marshal generator tool can
now include an header in the source, and undef the G_ENABLE_DEBUG
pre-processor symbol for us. It can also generate the prototypes of the
marshallers in the C source, and avoid a 'missing-prototypes' compiler
warning.

8 years agoUpdated Hebrew translation
Yosef Or Boczko [Mon, 10 Jul 2017 09:52:20 +0000 (12:52 +0300)]
Updated Hebrew translation

8 years agoUpdated Hebrew translation
Yosef Or Boczko [Mon, 10 Jul 2017 09:50:11 +0000 (12:50 +0300)]
Updated Hebrew translation

8 years agoAvoid a race in the print portal
Matthias Clasen [Sun, 2 Jul 2017 00:14:15 +0000 (20:14 -0400)]
Avoid a race in the print portal

Same as the previous commit; use the new predictable request
object path to connect to the Response signal early.

8 years agoAvoid a race in the file chooser portal
Matthias Clasen [Sat, 1 Jul 2017 23:13:03 +0000 (19:13 -0400)]
Avoid a race in the file chooser portal

Use the new predictable request object path and connect
to the Response signal before issuing the portal call.
This avoids a race that is pretty unlikely to hit in
the filechooser case.

8 years agolabel: Remove extra quote in code example
Daniel Boles [Fri, 7 Jul 2017 07:13:41 +0000 (08:13 +0100)]
label: Remove extra quote in code example

8 years agoGdkRGBA: Fix misspelt parameter names in docs
Daniel Boles [Thu, 6 Jul 2017 13:03:08 +0000 (14:03 +0100)]
GdkRGBA: Fix misspelt parameter names in docs

8 years agoGdkRGBA: Fix typo precentage => percentage
Daniel Boles [Thu, 6 Jul 2017 12:59:53 +0000 (13:59 +0100)]
GdkRGBA: Fix typo precentage => percentage

8 years agox11: Assign GDK_SOURCE_TABLET_PAD when necessary
Jason Gerecke [Tue, 27 Jun 2017 21:21:05 +0000 (14:21 -0700)]
x11: Assign GDK_SOURCE_TABLET_PAD when necessary

Wacom tablets often have a "pad" device which houses multiple buttons. At
present, these devices are incorrectly marked as GDK_SOURCE_PEN which can
cause problems for some software.

https://bugzilla.gnome.org/show_bug.cgi?id=782040

8 years agocss-overview: Don’t document deleted pseudoclasses
Daniel Boles [Thu, 22 Jun 2017 22:56:44 +0000 (23:56 +0100)]
css-overview: Don’t document deleted pseudoclasses

Commit b52966a318a26589b26598be9cda1628c04db3ff stopped the parser from
handling various deprecated pseudoclasses, which were aliases of others,
but it did not update the documentation to reflect that they were gone.

8 years agocss-overview: Fix typo “{with=>which} is disabled”
Daniel Boles [Thu, 22 Jun 2017 19:40:06 +0000 (20:40 +0100)]
css-overview: Fix typo “{with=>which} is disabled”

8 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Thu, 22 Jun 2017 14:32:27 +0000 (14:32 +0000)]
Update Kazakh translation

8 years agoUpdated Czech translation
Marek Cernocky [Tue, 20 Jun 2017 12:33:39 +0000 (14:33 +0200)]
Updated Czech translation

8 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 19 Jun 2017 15:36:06 +0000 (17:36 +0200)]
Updated Spanish translation

8 years agogdk: Set vid/pid on wayland tablets
Carlos Garnacho [Fri, 16 Jun 2017 16:21:34 +0000 (18:21 +0200)]
gdk: Set vid/pid on wayland tablets

This was missed so far... Use %.4x format, in order to behave just
the same than X11.

8 years agoheaderbar: fix "widow" typo in docs
Will Thompson [Thu, 15 Jun 2017 14:53:18 +0000 (15:53 +0100)]
headerbar: fix "widow" typo in docs

8 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 14 Jun 2017 05:48:33 +0000 (07:48 +0200)]
Updated Norwegian bokmål translation

8 years agoGtkActionHelper: Remove unnecessary NULL check
Debarshi Ray [Tue, 13 Jun 2017 09:06:50 +0000 (11:06 +0200)]
GtkActionHelper: Remove unnecessary NULL check

This NULL check has existed since commit 652f16dd985dbc1b, when
GtkActionHelper was first introduced, but so has the assertion at the
top to ensure the validity of 'widget'.

https://bugzilla.gnome.org/show_bug.cgi?id=783587

8 years agoGtkActionHelper: Allow a NULL action-name to unset the previous GAction
Debarshi Ray [Fri, 9 Jun 2017 10:15:53 +0000 (12:15 +0200)]
GtkActionHelper: Allow a NULL action-name to unset the previous GAction

https://bugzilla.gnome.org/show_bug.cgi?id=783587

8 years agofile chooser: Don't pass NULL as title to the portal
Matthias Clasen [Tue, 13 Jun 2017 17:09:56 +0000 (13:09 -0400)]
file chooser: Don't pass NULL as title to the portal

This causes critical warnings.

8 years agogtk/Makefile.am: Fix 'make dist'
Chun-wei Fan [Mon, 12 Jun 2017 10:14:57 +0000 (18:14 +0800)]
gtk/Makefile.am: Fix 'make dist'

We don't have gtkcenterboxprivate.h anymore, as it became a public
header...

8 years agoUpdate POTFILES.in
Piotr Drąg [Sun, 11 Jun 2017 14:57:47 +0000 (16:57 +0200)]
Update POTFILES.in

8 years agolabel: Provide a baseline in all cases
Matthias Clasen [Sun, 11 Jun 2017 14:35:06 +0000 (10:35 -0400)]
label: Provide a baseline in all cases

The label measuring code was only determining baselines
when the label was set to wrap, which does not seem right.
Non-wrapping labels have a meaningful baseline as well,
report it back.

8 years agocenter box: Take baseline-position fully into account
Matthias Clasen [Sat, 10 Jun 2017 18:45:10 +0000 (14:45 -0400)]
center box: Take baseline-position fully into account

We need to take baseline-position into account during measure
as well.

8 years agoUpdate Friulian translation
Fabio Tomat [Sat, 10 Jun 2017 16:07:52 +0000 (16:07 +0000)]
Update Friulian translation

8 years agoUpdate Friulian translation
Fabio Tomat [Sat, 10 Jun 2017 13:23:50 +0000 (13:23 +0000)]
Update Friulian translation

8 years agocenter box: complete the baseline support
Matthias Clasen [Sat, 10 Jun 2017 13:14:16 +0000 (09:14 -0400)]
center box: complete the baseline support

When there is no externally allocated baseline, we should
do the same thing that GtkBox does, and determine one from
the children that want baseline alignment.

This commit adds a GtkCenterBox::baseline-position property
with setters and getters.

8 years agocenter box: Fix size allocation
Matthias Clasen [Sat, 10 Jun 2017 11:52:01 +0000 (07:52 -0400)]
center box: Fix size allocation

This missing pair of parens was causing expanding children
to overlap.

8 years agocenter box: Drop a useless line
Matthias Clasen [Sat, 10 Jun 2017 11:51:25 +0000 (07:51 -0400)]
center box: Drop a useless line

This is just a leftover that has no effect whatsoever.

8 years agoUpdate Friulian translation
Fabio Tomat [Sat, 10 Jun 2017 09:58:18 +0000 (09:58 +0000)]
Update Friulian translation

8 years agoUpdate Friulian translation
Fabio Tomat [Sat, 10 Jun 2017 09:43:40 +0000 (09:43 +0000)]
Update Friulian translation

8 years agoUpdate Friulian translation
Fabio Tomat [Fri, 9 Jun 2017 07:51:06 +0000 (07:51 +0000)]
Update Friulian translation

8 years agoUpdate Friulian translation
Fabio Tomat [Thu, 8 Jun 2017 22:39:28 +0000 (22:39 +0000)]
Update Friulian translation

8 years agoicon-theme: Show filename attempted when icon fails to load
Robert Ancell [Thu, 8 Jun 2017 00:08:22 +0000 (12:08 +1200)]
icon-theme: Show filename attempted when icon fails to load

8 years agoiconhelper: Show error if fail to load placeholder icon
Robert Ancell [Wed, 7 Jun 2017 23:29:09 +0000 (11:29 +1200)]
iconhelper: Show error if fail to load placeholder icon

8 years agoAdd some translator comments
Matthias Clasen [Thu, 8 Jun 2017 19:05:55 +0000 (15:05 -0400)]
Add some translator comments

These were requested in
https://bugzilla.gnome.org/show_bug.cgi?id=783552

8 years agoUpdate Friulian translation
Fabio Tomat [Thu, 8 Jun 2017 14:48:47 +0000 (14:48 +0000)]
Update Friulian translation

8 years agoUpdate Friulian translation
Fabio Tomat [Thu, 8 Jun 2017 11:44:09 +0000 (11:44 +0000)]
Update Friulian translation

8 years agoprintunixdialog: Update collate icon as entry changes
Felipe Borges [Thu, 18 May 2017 14:11:56 +0000 (16:11 +0200)]
printunixdialog: Update collate icon as entry changes

By relying on GtkSpinButton default activation behavior, the
collate icon doesn't get updated when a new number is typed
in the copies spin button.

https://bugzilla.gnome.org/show_bug.cgi?id=759308

8 years agoUpdate Friulian translation
Fabio Tomat [Wed, 7 Jun 2017 10:35:28 +0000 (10:35 +0000)]
Update Friulian translation

8 years agoUpdate Friulian translation
Fabio Tomat [Tue, 6 Jun 2017 22:42:06 +0000 (22:42 +0000)]
Update Friulian translation

8 years agowidget: Fix gtk_widget_insert_after/before() docs
Kjell Ahlstedt [Tue, 6 Jun 2017 12:57:52 +0000 (14:57 +0200)]
widget: Fix gtk_widget_insert_after/before() docs

Add beginning double asterisks and function names. Correct the parameter
names (next/previous_child -> next/previous_sibling). Make the documentation
of the two functions more similar.

https://bugzilla.gnome.org/show_bug.cgi?id=783445

8 years agoInstall gtkcenterbox.h
Matthias Clasen [Tue, 6 Jun 2017 01:09:30 +0000 (21:09 -0400)]
Install gtkcenterbox.h

8 years agomodules/input/gtkimcontextime.c: Move to set_client_widget
Chun-wei Fan [Sat, 27 May 2017 02:38:19 +0000 (10:38 +0800)]
modules/input/gtkimcontextime.c: Move to set_client_widget

The imcontext internals have been changed to use set_client_widget
instead of set_client_window in order to remove API dependency on
GdkWindow.  Update the Windows IME support so that the code will
continue to build and work.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agogdk/gdkvulkancontext.c: Fix 32-bit Windows builds
Chun-wei Fan [Mon, 5 Jun 2017 14:17:12 +0000 (22:17 +0800)]
gdk/gdkvulkancontext.c: Fix 32-bit Windows builds

The callback function that is used by VkDebugReportCallbackCreateInfoEXT
is decorated with VKAPI_CALL (which is __stdcall on Windows).  This is
not detected on x64 Windows as __stdcall is not really meaningful on x64
Windows, and VKAPI_CALL expands to nothing on non-Windows.

As __stdcall functions are treated differently on 32-bit Windows, the
32-bit compiler does require that the function be declared as __stdcall
so that things will compile, link and run properly.

https://bugzilla.gnome.org/show_bug.cgi?id-773299

8 years agoUpdate Friulian translation
Fabio Tomat [Mon, 5 Jun 2017 13:04:26 +0000 (13:04 +0000)]
Update Friulian translation

8 years agogtktextdisplay: remove unused code
Nelson Benítez León [Sun, 4 Jun 2017 06:20:19 +0000 (11:20 +0500)]
gtktextdisplay: remove unused code

In render_para() function, which is called for every text line that
needs to be drawn.

https://bugzilla.gnome.org/show_bug.cgi?id=783397

8 years agocenter box: Add more documentation
Matthias Clasen [Mon, 5 Jun 2017 01:48:41 +0000 (21:48 -0400)]
center box: Add more documentation

8 years agoAdd a simple center box test
Matthias Clasen [Sat, 3 Jun 2017 13:08:44 +0000 (09:08 -0400)]
Add a simple center box test

Just a simple use of this widget.

8 years agocenter box: add baseline support
Matthias Clasen [Sun, 4 Jun 2017 19:57:58 +0000 (15:57 -0400)]
center box: add baseline support

This is copied more or less directly from GtkBoxGadget.

8 years agocenter box : implement GtkOrientable
Matthias Clasen [Sun, 4 Jun 2017 17:28:43 +0000 (13:28 -0400)]
center box : implement GtkOrientable

This is generally expected of containers where it makes sense.

8 years agocenter box: support height-for-width
Matthias Clasen [Sun, 4 Jun 2017 14:11:42 +0000 (10:11 -0400)]
center box: support height-for-width

Implement request modes fully.

8 years agocenter box: Support expand property
Matthias Clasen [Sun, 4 Jun 2017 02:44:19 +0000 (22:44 -0400)]
center box: Support expand property

We expand the center child first, but only as far
as we can keep it centered.

8 years agocenter box: implement GtkBuildable
Matthias Clasen [Sat, 3 Jun 2017 20:04:57 +0000 (16:04 -0400)]
center box: implement GtkBuildable

Make it possible to fill the slots by using the
type attribute on child nodes. This is necessary
since GtkCenterBox does not derive from GtkContainer.

8 years agocenter box: implement natural size and rtl flipping
Matthias Clasen [Sat, 3 Jun 2017 19:56:01 +0000 (15:56 -0400)]
center box: implement natural size and rtl flipping

We prefer to give the center widget its natural size,
and we center it as long as possible.